+Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org>
+
+ Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
+
+ * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
+ the call to gtk_tree_model_filter_add_root,
+ (gtk_tree_model_filter_row_changed): bail out if c_path is not above
+ the virtual root, allow building levels on the second try to convert
+ the child path to a filter path,
+ (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
+ root when calling gtk_tree_model_filter_elt_get_path.
+
2003-09-07 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640,
+Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org>
+
+ Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
+
+ * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
+ the call to gtk_tree_model_filter_add_root,
+ (gtk_tree_model_filter_row_changed): bail out if c_path is not above
+ the virtual root, allow building levels on the second try to convert
+ the child path to a filter path,
+ (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
+ root when calling gtk_tree_model_filter_elt_get_path.
+
2003-09-07 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640,
+Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org>
+
+ Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
+
+ * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
+ the call to gtk_tree_model_filter_add_root,
+ (gtk_tree_model_filter_row_changed): bail out if c_path is not above
+ the virtual root, allow building levels on the second try to convert
+ the child path to a filter path,
+ (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
+ root when calling gtk_tree_model_filter_elt_get_path.
+
2003-09-07 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640,
+Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org>
+
+ Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
+
+ * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
+ the call to gtk_tree_model_filter_add_root,
+ (gtk_tree_model_filter_row_changed): bail out if c_path is not above
+ the virtual root, allow building levels on the second try to convert
+ the child path to a filter path,
+ (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
+ root when calling gtk_tree_model_filter_elt_get_path.
+
2003-09-07 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640,
+Mon Sep 8 21:44:20 2003 Kristian Rietveld <kris@gtk.org>
+
+ Fixes from David Hampton <hampton@employees.org> via gtk-devel-list.
+
+ * gtk/gtktreemodelfilter.c (gtk_tree_model_filter_elt_get_path): fix
+ the call to gtk_tree_model_filter_add_root,
+ (gtk_tree_model_filter_row_changed): bail out if c_path is not above
+ the virtual root, allow building levels on the second try to convert
+ the child path to a filter path,
+ (gtk_tree_model_filter_convert_iter_to_child_iter): pass the virtual
+ root when calling gtk_tree_model_filter_elt_get_path.
+
2003-09-07 Matthias Clasen <maclas@gmx.de>
* gtk/gtkuimanager.c (update_node): Fix a C99ism. (#121640,
if (root)
{
- real_path = gtk_tree_path_copy (root);
-
- gtk_tree_model_filter_add_root (real_path, path);
+ real_path = gtk_tree_model_filter_add_root (path, root);
gtk_tree_path_free (path);
return real_path;
}
else
gtk_tree_model_get_iter (c_model, &real_c_iter, c_path);
+ /* is this node above the virtual root? */
+ if (filter->priv->virtual_root
+ && (gtk_tree_path_get_depth (filter->priv->virtual_root)
+ >= gtk_tree_path_get_depth (c_path)))
+ goto done;
+
/* what's the requested state? */
requested_state = gtk_tree_model_filter_visible (filter, &real_c_iter);
if (!path)
path = gtk_real_tree_model_filter_convert_child_path_to_path (filter,
c_path,
- FALSE,
+ TRUE,
TRUE);
g_return_if_fail (path != NULL);
path = gtk_tree_model_filter_elt_get_path (filter_iter->user_data,
filter_iter->user_data2,
- NULL);
+ filter->priv->virtual_root);
gtk_tree_model_get_iter (filter->priv->child_model, child_iter, path);
gtk_tree_path_free (path);
}